﻿using NPOI.SS.Formula.Functions;
using ServiceStack.Jobs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ozone.Models.ViewModel
{
    public class Process1ViewModel : ViewModelBase
    {
        private static Process1ViewModel instance = null;
        private static object _lock = new object();
        private Process1ViewModel()
        {
            WorkerStats_YTJY = false;
            YTJYBumber1 = 0;
            YTJYBumber2 = 0;
            WorkerStats_BSL1 = false;
            BSLNumber1 = 0;
            BSLNumber2 = 1;

            WorkerStats_LQX1 = false;
            WorkerStats_LQX2 = false;
            LQXNumber1 = 0;
            LQXNumber2 = 0;

            WorkerStats_PZ = false;

            PZNumber1 = 0;
            PZNumber2 = 0;


            WorkerStats_JY = false;
            WorkerStats_CS = false;

            JYCSNumber1 = 0;
            JYCSNumber2 = 0;

            WorkerStats_GCH1 = false;
            WorkerStats_GCH2 = false;
            GCHNumber1 = 0;
            GCHNumber2 = 0;

            WorkerStats_GYFL = false;
            GYFLNumber1 = 0;
            GYFLNumber2 = 0;



            BSLTemp1 = 0;
            BSLTemp2 = 0;
            LQXTemp1 = 0;
            LQXTemp2 = 0;

        }
        public static Process1ViewModel Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (_lock)
                    {
                        if (instance == null)
                        {
                            instance = new Process1ViewModel();
                        }
                    }
                }
                return instance;
            }
        }


        /// <summary>
        /// 液体进样工作状态
        /// </summary>
        public bool _WorkerStats_YTJY;
        public bool WorkerStats_YTJY
        {
            get => _WorkerStats_YTJY;
            set => SetProperty(ref _WorkerStats_YTJY, value);
        }



        /// <summary>
        /// 液体进样当前运行编号
        /// </summary>
        public int _YTJYBumber1;
        public int YTJYBumber1
        {
            get => _YTJYBumber1;
            set => SetProperty(ref _YTJYBumber1, value);
        }
        /// <summary>
        /// 液体进样当前运行编号
        /// </summary>
        public int _YTJYBumber2;
        public int YTJYBumber2
        {
            get => _YTJYBumber2;
            set => SetProperty(ref _YTJYBumber2, value);
        }







        /// <summary>
        /// 焙烧炉1 工作状态
        /// </summary>
        public bool _WorkerStats_BSL1;
        public bool WorkerStats_BSL1
        {
            get => _WorkerStats_BSL1;
            set => SetProperty(ref _WorkerStats_BSL1, value);
        }


        /// <summary>
        /// 焙烧炉2 工作状态
        /// </summary>
        public bool _WorkerStats_BSL2;
        public bool WorkerStats_BSL2
        {
            get => _WorkerStats_BSL2;
            set => SetProperty(ref _WorkerStats_BSL2, value);
        }



        /// <summary>
        /// 焙烧炉当前运行编号
        /// </summary>
        public int _BSLNumber1;
        public int BSLNumber1
        {
            get => _BSLNumber1;
            set => SetProperty(ref _BSLNumber1, value);
        }
        /// <summary>
        /// 焙烧炉当前运行编号
        /// </summary>
        public int _BSLNumber2;
        public int BSLNumber2
        {
            get => _BSLNumber2;
            set => SetProperty(ref _BSLNumber2, value);
        }

        /// <summary>
        /// 冷却箱1 工作状态
        /// </summary>
        public bool _WorkerStats_LQX1;
        public bool WorkerStats_LQX1
        {
            get => _WorkerStats_LQX1;
            set => SetProperty(ref _WorkerStats_LQX1, value);
        }


        /// <summary>
        /// 冷却箱2 工作状态
        /// </summary>
        public bool _WorkerStats_LQX2;
        public bool WorkerStats_LQX2
        {
            get => _WorkerStats_LQX2;
            set => SetProperty(ref _WorkerStats_LQX2, value);
        }


        /// <summary>
        ///  冷却箱当前运行编号
        /// </summary>
        public int _LQXNumber1;
        public int LQXNumber1
        {
            get => _LQXNumber1;
            set => SetProperty(ref _LQXNumber1, value);
        }

        /// <summary>
        ///  冷却箱当前运行编号
        /// </summary>
        public int _LQXNumber2;
        public int LQXNumber2
        {
            get => _LQXNumber2;
            set => SetProperty(ref _LQXNumber2, value);
        }


        /// <summary>
        /// 拍照工作状态
        /// </summary>
        public bool _WorkerStats_PZ;
        public bool WorkerStats_PZ
        {
            get => _WorkerStats_PZ;
            set => SetProperty(ref _WorkerStats_PZ, value);
        }






        /// <summary>
        ///  拍照当前运行编号
        /// </summary>
        public int _PZNumber1;
        public int PZNumber1
        {
            get => _PZNumber1;
            set => SetProperty(ref _PZNumber1, value);
        }

        /// <summary>
        ///  拍照当前运行编号
        /// </summary>
        public int _PZNumber2;
        public int PZNumber2
        {
            get => _PZNumber2;
            set => SetProperty(ref _PZNumber2, value);
        }



        /// <summary>
        /// 加液工作状态
        /// </summary>
        public bool _WorkerStats_JY;
        public bool WorkerStats_JY
        {
            get => _WorkerStats_JY;
            set => SetProperty(ref _WorkerStats_JY, value);
        }

        /// <summary>
        /// 超声工作状态
        /// </summary>
        public bool _WorkerStats_CS;
        public bool WorkerStats_CS
        {
            get => _WorkerStats_CS;
            set => SetProperty(ref _WorkerStats_CS, value);
        }



        /// <summary>
        ///  加液超声当前运行编号
        /// </summary>
        public int _JYCSNumber1;
        public int JYCSNumber1
        {
            get => _JYCSNumber1;
            set => SetProperty(ref _JYCSNumber1, value);
        }

        /// <summary>
        ///  加液超声当前运行编号
        /// </summary>
        public int _JYCSNumber2;
        public int JYCSNumber2
        {
            get => _JYCSNumber2;
            set => SetProperty(ref _JYCSNumber2, value);
        }


        /// <summary>
        /// 光催化工作状态1
        /// </summary>
        public bool _WorkerStats_GCH1;
        public bool WorkerStats_GCH1
        {
            get => _WorkerStats_GCH1;
            set => SetProperty(ref _WorkerStats_GCH1, value);
        }



        /// <summary>
        /// 光催化工作状态2
        /// </summary>
        public bool _WorkerStats_GCH2;
        public bool WorkerStats_GCH2
        {
            get => _WorkerStats_GCH2;
            set => SetProperty(ref _WorkerStats_GCH2, value);
        }




        /// <summary>
        ///  光催化当前运行编号
        /// </summary>
        public int _GCHNumber1;
        public int GCHNumber1
        {
            get => _GCHNumber1;
            set => SetProperty(ref _GCHNumber1, value);
        }

        /// <summary>
        ///  光催化当前运行编号
        /// </summary>
        public int _GCHNumber2;
        public int GCHNumber2
        {
            get => _GCHNumber2;
            set => SetProperty(ref _GCHNumber2, value);
        }




        /// <summary>
        /// 固液分离
        /// </summary>
        public bool _WorkerStats_GYFL;
        public bool WorkerStats_GYFL
        {
            get => _WorkerStats_GYFL;
            set => SetProperty(ref _WorkerStats_GYFL, value);
        }



        /// <summary>
        ///  固液分离当前运行编号
        /// </summary>
        public int _GYFLNumber1;
        public int GYFLNumber1
        {
            get => _GYFLNumber1;
            set => SetProperty(ref _GYFLNumber1, value);
        }

        /// <summary>
        ///  固液分离当前运行编号
        /// </summary>
        public int _GYFLNumber2;
        public int GYFLNumber2
        {
            get => _GYFLNumber2;
            set => SetProperty(ref _GYFLNumber2, value);
        }






        /// <summary>
        /// 焙烧炉温度1
        /// </summary>
        public double _BSLTemp1;
        public double BSLTemp1
        {
            get => _BSLTemp1;
            set => SetProperty(ref _BSLTemp1, value);
        }

        /// <summary>
        ///  焙烧炉温度2
        /// </summary>
        public double _BSLTemp2;
        public double BSLTemp2
        {
            get => _BSLTemp2;
            set => SetProperty(ref _BSLTemp2, value);
        }




        /// <summary>
        /// 冷却箱温度1
        /// </summary>
        public double _LQXTemp1;
        public double LQXTemp1
        {
            get => _LQXTemp1;
            set => SetProperty(ref _LQXTemp1, value);
        }

        /// <summary>
        ///  冷却箱温度2
        /// </summary>
        public double _LQXTemp2;
        public double LQXTemp2
        {
            get => _LQXTemp2;
            set => SetProperty(ref _LQXTemp2, value);
        }
    }
}
